package com.atguigu.pojo;

public class Subtask {
    String id;
    String mainTaskId;
    String mainTaskType;
    String serverId;
    String targetNodeId;
    String command;
    String status;
    String result;

    public Subtask() {
    }

    public Subtask(String id, String mainTaskId, String mainTaskType, String serverId, String targetNodeId, String command, String status, String result) {
        this.id = id;
        this.mainTaskId = mainTaskId;
        this.mainTaskType = mainTaskType;
        this.serverId = serverId;
        this.targetNodeId = targetNodeId;
        this.command = command;
        this.status = status;
        this.result = result;
    }

    @Override
    public String toString() {
        return "Subtask{" +
                "id='" + id + '\'' +
                ", mainTaskId='" + mainTaskId + '\'' +
                ", mainTaskType='" + mainTaskType + '\'' +
                ", serverId='" + serverId + '\'' +
                ", targetNodeId='" + targetNodeId + '\'' +
                ", command='" + command + '\'' +
                ", status='" + status + '\'' +
                ", result='" + result + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMainTaskId() {
        return mainTaskId;
    }

    public void setMainTaskId(String mainTaskId) {
        this.mainTaskId = mainTaskId;
    }

    public String getMainTaskType() {
        return mainTaskType;
    }

    public void setMainTaskType(String mainTaskType) {
        this.mainTaskType = mainTaskType;
    }

    public String getServerId() {
        return serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public String getTargetNodeId() {
        return targetNodeId;
    }

    public void setTargetNodeId(String targetNodeId) {
        this.targetNodeId = targetNodeId;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
